<html>
<head><meta charset="utf-8"><title>Atomic availability doc · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Atomic.20availability.20doc.html">Atomic availability doc</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="199794657"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Atomic%20availability%20doc/near/199794657" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Atomic.20availability.20doc.html#199794657">(Jun 04 2020 at 19:14)</a>:</h4>
<p>I'm trying to fix <a href="https://github.com/rust-lang/rust/issues/54250">#54250</a>, should I document each time I see something like <code>#[cfg(target_has_atomic_load_store = "8")]</code> on types/functions/methods ?</p>



<a name="199827640"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Atomic%20availability%20doc/near/199827640" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lokathor <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Atomic.20availability.20doc.html#199827640">(Jun 05 2020 at 01:16)</a>:</h4>
<p>I'm not on any team, but probably</p>



<a name="199828243"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Atomic%20availability%20doc/near/199828243" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Atomic.20availability.20doc.html#199828243">(Jun 05 2020 at 01:30)</a>:</h4>
<p>(Better to ask questions like this in <a class="stream" data-stream-id="219381" href="/#narrow/stream/219381-t-libs">#t-libs</a>, fwiw).</p>
<p>But yeah I would say that we should say something like "This is available on targets with atomic loads/stores at least 8 bits wide" or something like that. Would be amazing to link to a list, but I don't know that we have one.</p>



<a name="199828257"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Atomic%20availability%20doc/near/199828257" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Atomic.20availability.20doc.html#199828257">(Jun 05 2020 at 01:30)</a>:</h4>
<p>Maybe we should put a list in the atomic module (for the builtin targets)</p>



<a name="199828286"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Atomic%20availability%20doc/near/199828286" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Atomic.20availability.20doc.html#199828286">(Jun 05 2020 at 01:31)</a>:</h4>
<p>notably expanding this section; <a href="https://doc.rust-lang.org/nightly/std/sync/atomic/index.html#portability">https://doc.rust-lang.org/nightly/std/sync/atomic/index.html#portability</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>